package com.oo.polymorphic_4.animal;

/**
 * Cat--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 16:41
 **/
public class Cat extends Animal {
    private String area;

    public Cat() {
    }

    public Cat(String name, String color, int age, String area) {
        super(name, color, age);
        this.area = area;
    }

    @Override
    public void breed() {
        System.out.println("名称："+this.getName()
        +"\n产地："+this.getArea()
        +"\n毛色："+this.getColor()
        +"\n年龄："+this.getAge()
        +"\n注意事项");
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }
}
